package com.centaline.androidsalesblog.adapter.viewholder;

import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.centaline.androidsalesblog.R;
import com.centaline.androidsalesblog.base.BaseActivity;

/**
 * 门店
 * Created by Lihq on 16/2/15.
 */
public class StoreVH extends RecyclerView.ViewHolder {

    public AppCompatTextView atv_store_title, atv_store_nav, atv_store_address, atv_store_btn, atv_agent_count;
    public RelativeLayout rl_store_agent, rl_agent_detail;
    public ImageView img_store_arrow,img_360;
    public RecyclerView mRecyclerview_horizontal;
    private BaseActivity activity;

    public StoreVH(View itemView) {
        super(itemView);
        atv_store_title = (AppCompatTextView) itemView.findViewById(R.id.atv_store_title);
        atv_agent_count = (AppCompatTextView) itemView.findViewById(R.id.atv_agent_count);
        atv_store_nav = (AppCompatTextView) itemView.findViewById(R.id.atv_store_nav);
        atv_store_address = (AppCompatTextView) itemView.findViewById(R.id.atv_store_address);
        atv_store_btn = (AppCompatTextView) itemView.findViewById(R.id.atv_store_btn);
        rl_store_agent = (RelativeLayout) itemView.findViewById(R.id.rl_store_agent);
        rl_agent_detail = (RelativeLayout) itemView.findViewById(R.id.rl_agent_detail);
        img_store_arrow = (ImageView) itemView.findViewById(R.id.img_store_arrow);
        img_360 = (ImageView) itemView.findViewById(R.id.img_360);
        mRecyclerview_horizontal = (RecyclerView) itemView.findViewById(R.id.mRecyclerview_horizontal);
        LinearLayoutManager layoutManager = new LinearLayoutManager(activity, LinearLayoutManager.HORIZONTAL, false);
        mRecyclerview_horizontal.setLayoutManager(layoutManager);
    }


}
